package com.hzo.great.leisuregreat.beans;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.TypeReference;

public class PhoneBean {
    /**
     * rownum : 1
     * CatetoryNo : 1001
     * Title : 测试手机数据13
     * Icon : http://192.168.0.101:8083/demo.png
     * originalPrice : 4999
     * nowPrice : 1999
     * ModelNo : IP619
     * PaymentType : 1
     * Guarantee : 1
     * CreateTime : 2018-07-03T15:28:05.117
     * UpdateTime : 2018-07-03T15:28:05.117
     * Degree : 100
     * IsTested : true
     * Parameters :
     * Status : 1
     * RepertoryNum : 1
     * SoldNum : 0
     * NetType : 电信4G
     * ProductId : 1000000
     * Memory : 8G
     * PayTitle :
     * ProductName : Iphone 6/6s
     * Id : 10021
     * ParamList : null
     */

    private int rownum;
    private int CatetoryNo;
    private String Title;
    private String Icon;
    private int originalPrice;
    private int nowPrice;
    private String ModelNo;
    private int PaymentType;
    private int Guarantee;
    private String CreateTime;
    private String UpdateTime;
    private int Degree;
    private boolean IsTested;
    private String Parameters;
    private int Status;
    private int RepertoryNum;
    private int SoldNum;
    private String NetType;
    private int ProductId;
    private String Memory;
    private String PayTitle;
    private String ProductName;
    private int Id;
    private Object ParamList;

    public int getRownum() {
        return rownum;
    }

    public void setRownum(int rownum) {
        this.rownum = rownum;
    }

    public int getCatetoryNo() {
        return CatetoryNo;
    }

    public void setCatetoryNo(int CatetoryNo) {
        this.CatetoryNo = CatetoryNo;
    }

    public String getTitle() {
        return Title;
    }

    public void setTitle(String Title) {
        this.Title = Title;
    }

    public String getIcon() {
        return Icon;
    }

    public void setIcon(String Icon) {
        this.Icon = Icon;
    }

    public int getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(int originalPrice) {
        this.originalPrice = originalPrice;
    }

    public int getNowPrice() {
        return nowPrice;
    }

    public void setNowPrice(int nowPrice) {
        this.nowPrice = nowPrice;
    }

    public String getModelNo() {
        return ModelNo;
    }

    public void setModelNo(String ModelNo) {
        this.ModelNo = ModelNo;
    }

    public int getPaymentType() {
        return PaymentType;
    }

    public void setPaymentType(int PaymentType) {
        this.PaymentType = PaymentType;
    }

    public int getGuarantee() {
        return Guarantee;
    }

    public void setGuarantee(int Guarantee) {
        this.Guarantee = Guarantee;
    }

    public String getCreateTime() {
        return CreateTime;
    }

    public void setCreateTime(String CreateTime) {
        this.CreateTime = CreateTime;
    }

    public String getUpdateTime() {
        return UpdateTime;
    }

    public void setUpdateTime(String UpdateTime) {
        this.UpdateTime = UpdateTime;
    }

    public int getDegree() {
        return Degree;
    }

    public void setDegree(int Degree) {
        this.Degree = Degree;
    }

    public boolean isIsTested() {
        return IsTested;
    }

    public void setIsTested(boolean IsTested) {
        this.IsTested = IsTested;
    }

    public String getParameters() {
        return Parameters;
    }

    public void setParameters(String Parameters) {
        this.Parameters = Parameters;
    }

    public int getStatus() {
        return Status;
    }

    public void setStatus(int Status) {
        this.Status = Status;
    }

    public int getRepertoryNum() {
        return RepertoryNum;
    }

    public void setRepertoryNum(int RepertoryNum) {
        this.RepertoryNum = RepertoryNum;
    }

    public int getSoldNum() {
        return SoldNum;
    }

    public void setSoldNum(int SoldNum) {
        this.SoldNum = SoldNum;
    }

    public String getNetType() {
        return NetType;
    }

    public void setNetType(String NetType) {
        this.NetType = NetType;
    }

    public int getProductId() {
        return ProductId;
    }

    public void setProductId(int ProductId) {
        this.ProductId = ProductId;
    }

    public String getMemory() {
        return Memory;
    }

    public void setMemory(String Memory) {
        this.Memory = Memory;
    }

    public String getPayTitle() {
        return PayTitle;
    }

    public void setPayTitle(String PayTitle) {
        this.PayTitle = PayTitle;
    }

    public String getProductName() {
        return ProductName;
    }

    public void setProductName(String ProductName) {
        this.ProductName = ProductName;
    }

    public int getId() {
        return Id;
    }

    public void setId(int Id) {
        this.Id = Id;
    }

    public Object getParamList() {
        return ParamList;
    }

    public void setParamList(Object ParamList) {
        this.ParamList = ParamList;
    }

    @Override
    public String toString() {
        return "PhoneBean{" +
                "rownum=" + rownum +
                ", CatetoryNo=" + CatetoryNo +
                ", Title='" + Title + '\'' +
                ", Icon='" + Icon + '\'' +
                ", originalPrice=" + originalPrice +
                ", nowPrice=" + nowPrice +
                ", ModelNo='" + ModelNo + '\'' +
                ", PaymentType=" + PaymentType +
                ", Guarantee=" + Guarantee +
                ", CreateTime='" + CreateTime + '\'' +
                ", UpdateTime='" + UpdateTime + '\'' +
                ", Degree=" + Degree +
                ", IsTested=" + IsTested +
                ", Parameters='" + Parameters + '\'' +
                ", Status=" + Status +
                ", RepertoryNum=" + RepertoryNum +
                ", SoldNum=" + SoldNum +
                ", NetType='" + NetType + '\'' +
                ", ProductId=" + ProductId +
                ", Memory='" + Memory + '\'' +
                ", PayTitle='" + PayTitle + '\'' +
                ", ProductName='" + ProductName + '\'' +
                ", Id=" + Id +
                ", ParamList=" + ParamList +
                '}';
    }

    public static PhoneBean JSONStrToJavaBeanObj(String jsonStr){
        return JSON.parseObject(jsonStr, new TypeReference<PhoneBean>() {});
    }
}
